From: kfraser@localhost.localdomain Date: Fri, 17 Aug 2007 09:00:22 +0000 (+0100) Subject: Fix "xm restore" require 4 times amount of memory on ia64. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14987^2~67^2~6 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=133feccc8529cab25144181c2be086d4813072c3;p=xen.git Fix "xm restore" require 4 times amount of memory on ia64. Signed-off-by: Masayuki Igawa --- diff --git a/tools/python/xen/xend/XendCheckpoint.py b/tools/python/xen/xend/XendCheckpoint.py index f88d8a8788..6e6bb1afdd 100644 --- a/tools/python/xen/xend/XendCheckpoint.py +++ b/tools/python/xen/xend/XendCheckpoint.py @@ -181,7 +181,8 @@ def restore(xd, fd, dominfo = None, paused = False): assert store_port assert console_port - nr_pfns = (dominfo.getMemoryTarget() + 3) / 4 + page_size_kib = xc.pages_to_kib(1) + nr_pfns = (dominfo.getMemoryTarget() + page_size_kib - 1) / page_size_kib # if hvm, pass mem size to calculate the store_mfn image_cfg = dominfo.info.get('image', {})